package com.mk.msg;

import act.app.App;
import act.event.ActEvent;
import act.event.EventBus;
import com.mk.enums.Config;
import com.mk.msg.template.base.MsgTemplate;

@SuppressWarnings("unused")
public class M {
    /**
     * 发送消息开始
     *
     * @param template 模版
     */
    public static void excute(MsgTemplate template) {
        App app = App.instance();
        EventBus eventBus = app.getInstance(EventBus.class);
        eventBus.triggerAsync(Config.EVENT_SEND_MSG.value(), new ActEvent<>(template));
    }
}
